package com.usian.springbootmysql.service;

import com.usian.springbootmysql.pojo.ResultVo;

public interface LoginService {

    /**
     * 发送短信验证码
     * @param phone 登陆手机号
     * @return
     * @throws Exception
     */
    public ResultVo sendCode(String phone) throws Exception;

    /**
     * 手机+验证码登录
     * @param phone 用户输入的验证码
     * @param code
     * @return
     */
    public ResultVo userLogin(String phone,String code);
}
